package com.base.cn.platform.os.service.course.qa.thumb;

import com.base.cn.platform.os.service.course.CourseBaseService;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 问题点赞Service
 *
 * @author LIZHIPENG
 * @create 2018-05-17 下午 7:55
 */
@FeignClient(name = CourseBaseService.appName,configuration = FeignAutoConfiguration.class)
public interface QaThumbService extends CourseBaseService {

    /**
     * 问题点赞、取消点赞
     * @param questionId 问题ID
     * @param userId 用户ID
     * @return
     */
    @RequestMapping(contextPath + "/thumbQuestion")
    Map<String, Object> thumbQuestion(@RequestParam("questionId") BigDecimal questionId,
                                      @RequestParam("userId") BigDecimal userId);
}
